<template>
  <div class="box">
    <div class="head">
      <el-breadcrumb
        separator-class="el-icon-arrow-right"
        style="line-height: 70px; margin-left: 10px"
      >
        <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item :to="{ path: '/cart' }">购物车</el-breadcrumb-item>
        <el-breadcrumb-item>填写订单</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="address_box">
      <div class="add_head">收货地址</div>
      <div class="address">
        <div class="add">
          <p>收货人:</p>
          <p>联系方式:</p>
          <p>收货地址:</p>
        </div>
        <div class="edit" @click="editAdd">修改地址</div>
        
        <div class="btn">
          <p>切换地址</p>
          <p style="margin-right: 60px">添加地址</p>
        </div>
      </div>
      <div class="add_head" style="margin-top: 20px">商品信息</div>
      <div class="msg_box">
        <div class="msg_tit">
          <ul>
            <li style="width: 500px; margin: 0 20px">商品信息</li>
            <li>单价</li>
            <li>数量</li>
            <li>小计</li>
            <li>实付</li>
          </ul>
        </div>
        <div class="msg">
          <ul>
            <li class="info_box" style="width: 500px; text-align: left">
              <img src="" alt="" style="width: 80px; height: 80px" />
              <div class="text">
                <p class="name">朗姆酒</p>
                <p class="info">规格:</p>
              </div>
            </li>
            <li><p class="price">$236.0</p></li>
            <li><p class="count">1</p></li>
            <li><p class="allPrice">236.0</p></li>
            <li><p class="allPrice">236.00</p></li>
          </ul>
        </div>
      </div>
      <div class="add_head" style="margin-top: 20px">配送时间</div>
      <div class="time">
        <p>不限送货时间：周一至周日</p>
        <p>工作日送货：周一至周五</p>
        <p>双休日、节假日：周六至周日</p>
      </div>
      <div class="add_head" style="margin-top: 20px">配送时间</div>
      <div class="pay">
        <p>在线支付</p>
        <p>货到付款</p>
        <span style="color: #999">货到付款需5元手续费</span>
      </div>
      <div class="add_head" style="margin-top: 20px">金额明细</div>
      <div class="money">
        <ul>
          <li>
            <p class="title">商品件数：</p>
            <p class="info">件</p>
          </li>
          <li>
            <p class="title">商品总价：</p>
            <p class="info">￥</p>
          </li>
          <li>
            <p class="title">运&emsp;&emsp;费：</p>
            <p class="info">￥</p>
          </li>
          <li>
            <p class="title">应付总额：</p>
            <p class="info" style="color: rgb(192, 25, 25); font-size: 18px">
              ￥
            </p>
          </li>
        </ul>
      </div>
      <!-- 提交 -->
      <div class="submit">
        <button class="sub">提交订单</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.box {
  width: 1200px;
  margin: 0 auto;
//   border: 1px solid #000;
  .address_box {
    background: white;
    padding: 0 20px;
    .add_head {
      line-height: 60px;
      font-size: 18px;
      border-bottom: 1px solid #eee;
    }
    .address {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
    //   border: 1px solid #000;
      margin-top: 20px;
      .add {
        width: 400px;
        height: 100px;
        display: flex;
        flex-direction: column;
        p {
          flex: 1;
          line-height: 33px;
        }
      }
      .edit {
        line-height: 100px;
        color: #27ba9b;
        padding: 0 50px;
        border-right: 1px solid #eee;
      }
      .btn {
        display: flex;
        align-items: center;
        p {
          border: 1px solid #ccc;
          padding: 15px 50px;
          margin-right: 40px;
          border-radius: 5px;
        }
      }
    }
    .msg_box {
      margin-top: 20px;
      .msg_tit {
        ul {
          display: flex;
          align-items: center;
          justify-content: space-between;
          background: #f5f5f5;
          line-height: 60px;
          padding-right: 30px;
          li {
            width: 80px;
            text-align: center;
            // border: 1px solid #000;
          }
        }
      }
      .msg {
        ul {
          display: flex;
          align-items: center;
          justify-content: space-between;
          border: 1px solid #f5f5f5;
          padding-right: 30px;
          li {
            width: 80px;
            text-align: center;
            // border: 1px solid #000;
          }
          .info_box {
            margin: 20px;
            display: flex;
            img {
              margin-right: 20px;
            }
            .text {
              line-height: 30px;
              .name,
              .info {
                width: 400px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }
              .info {
                color: #999;
              }
            }
          }
        }
      }
    }
    .time,
    .pay {
      display: flex;
      align-items: center;
      margin-top: 20px;
      p {
        border: 1px solid #999;
        margin-right: 30px;
        line-height: 50px;
        width: 260px;
        text-align: center;
        &:hover {
          border: 1px solid #27ba9b;
        }
      }
    }
    .money {
      display: flex;
      justify-content: end;
      border-bottom: 1px solid #eee;
      ul {
        margin-right: 50px;
        margin-bottom: 30px;
        li {
          width: 260px;
          display: flex;
          justify-content: space-between;
          line-height: 60px;
        }
      }
    }
    .submit {
        display: flex;
        justify-content: end;
      .sub {
        margin: 0 20px;
        width: 200px;
        height: 50px;
        font-size: 16px;
        color: white;
        background: #27ba9b;
        border: none;
        border-radius: 5px;
        margin: 60px 0;
      }
    }
  }
}
</style>